<!--
*Author：DGZ
 *Contact：jiduxiong@dagongzao.com
 *代码由框架生成,任何更改都可能导致被代码生成器覆盖
 *业务请在@/extension/bizappproject/cailiao_plan_data/material_plan_xie.jsx此处编写
 -->
<template>
    <view-grid ref="grid"
               :columns="columns"
               :detail="detail"
               :details="details"
               :editFormFields="editFormFields"
               :editFormOptions="editFormOptions"
               :searchFormFields="searchFormFields"
               :searchFormOptions="searchFormOptions"
               :table="table"
               :extend="extend">
    </view-grid>
</template>
<script>
    import extend from "@/extension/bizappproject/cailiao_plan_data/material_plan_xie.jsx";
    import { ref, defineComponent } from "vue";
    export default defineComponent({
        name: "material_plan_xie",
        setup() {
            const table = ref({
                key: "Id",
                editTable:true ,
                footer: "Foots",
                cnName: "分计划进度-北方",
                name: "cailiao_plan_data/material_plan_xie",
                newTabEdit: false,
                url: "/material_plan_xie/",
                sortName: "Id"
            });
            const editFormFields = ref({"schedule_id":"","done_no":"","top_id":"","grade":"","schedule_blank_spec":"","mold_id":"","steelgrade_id":"","bate":"","mixed_material_weight":"","date_first_batch":"","date_finished":"","product_qty":"","per_weight":"","total_weight":"","device_type":"","Qty_yl":"","InputQty_yl":"","Qty_qp":"","InputQty_qp":"","Qty_qlm":"","InputQty_qlm":"","Qty_yx":"","InputQty_yx":"","Qty_sj":"","InputQty_sj":"","Remarks":""});
            const editFormOptions = ref([[{"title":"计划单号","required":true,"field":"schedule_id","disabled":true},
                               {"title":"是否完成","field":"done_no"}],
                              [{"title":"产品代号","field":"top_id"},
                               {"title":"性能","field":"grade"}],
                              [{"title":"毛坯尺寸","field":"schedule_blank_spec"},
                               {"title":"模具","field":"mold_id"}],
                              [{"title":"钢号","field":"steelgrade_id"},
                               {"title":"首批日期","field":"date_first_batch"},
                               {"title":"比例","field":"bate"},
                               {"title":"辅合金用量","field":"mixed_material_weight"}],
                              [{"title":"末批日期","field":"date_finished"},
                               {"title":"计划数量","field":"product_qty","type":"decimal"}],
                              [{"title":"产品单重","field":"per_weight","type":"decimal"},
                               {"title":"订单总重","field":"total_weight","type":"decimal"},
                               {"title":"设备类型","field":"device_type"}],
                              [{"title":"冶炼已派工","field":"Qty_yl","type":"decimal"},
                               {"title":"冶炼已入库","field":"InputQty_yl","type":"decimal"}],
                              [{"title":"氢破已派工","field":"Qty_qp","type":"decimal"},
                               {"title":"氢破已入库","field":"InputQty_qp","type":"decimal"}],
                              [{"title":"气流磨已派工","field":"Qty_qlm","type":"decimal"},
                               {"title":"气流磨已入库","field":"InputQty_qlm","type":"decimal"}],
                              [{"title":"压型已派工","field":"Qty_yx","type":"decimal"},
                               {"title":"压型已入库","field":"InputQty_yx","type":"decimal"}],
                              [{"title":"烧结已派工","field":"Qty_sj","type":"decimal"},
                               {"title":"烧结已入库","field":"InputQty_sj","type":"decimal"}],
                              [{"title":"备注","field":"Remarks","colSize":12,"type":"textarea"}]]);
            const searchFormFields = ref({"schedule_id":"","top_id":""});
            const searchFormOptions = ref([[{"title":"计划单号","field":"schedule_id","type":"like"},{"title":"产品代号","field":"top_id","type":"like"}]]);
            const columns = ref([{field:"schedule_id",title:"计划单号",type:"string",link:true,width:150,readonly:true,edit:{type:""},require:true,showOverflowTooltip:true,align:"left"},
                       {field:"done_no",title:"是否完成",type:"string",sort:true,width:120,edit:{type:""},showOverflowTooltip:true,align:"left"},
                       {field:"top_id",title:"产品代号",type:"string",width:150,edit:{type:""},showOverflowTooltip:true,align:"left"},
                       {field:"grade",title:"性能",type:"string",width:150,edit:{type:""},showOverflowTooltip:true,align:"left"},
                       {field:"schedule_blank_spec",title:"毛坯尺寸",type:"string",width:150,edit:{type:""},showOverflowTooltip:true,align:"left"},
                       {field:"mold_id",title:"模具",type:"string",width:150,edit:{type:""},showOverflowTooltip:true,align:"left"},
                       {field:"steelgrade_id",title:"钢号",type:"string",width:150,edit:{type:""},showOverflowTooltip:true,align:"left"},
                       {field:"mixed_material_name",title:"辅合金名称",type:"string",width:80,showOverflowTooltip:true,align:"left"},
                       {field:"bate",title:"比例",type:"string",width:80,edit:{type:""},showOverflowTooltip:true,align:"left"},
                       {field:"mixed_material_weight",title:"辅合金用量",type:"string",width:100,edit:{type:""},showOverflowTooltip:true,align:"left"},
                       {field:"date_first_batch",title:"首批日期",type:"datetime",width:110,edit:{type:""},showOverflowTooltip:true,align:"left"},
                       {field:"date_finished",title:"末批日期",type:"datetime",width:110,edit:{type:""},showOverflowTooltip:true,align:"left"},
                       {field:"product_qty",title:"计划数量",type:"decimal",width:110,edit:{type:""},showOverflowTooltip:true,align:"left"},
                       {field:"per_weight",title:"产品单重",type:"decimal",width:110,edit:{type:""},showOverflowTooltip:true,align:"left"},
                       {field:"total_weight",title:"订单总重",type:"decimal",width:110,edit:{type:""},showOverflowTooltip:true,align:"left"},
                       {field:"device_type",title:"设备类型",type:"string",width:120,edit:{type:""},showOverflowTooltip:true,align:"left"},
                       {field:"Qty_yl",title:"冶炼已派工",type:"decimal",width:110,edit:{type:""},showOverflowTooltip:true,align:"left"},
                       {field:"InputQty_yl",title:"冶炼已入库",type:"decimal",width:110,edit:{type:""},showOverflowTooltip:true,align:"left"},
                       {field:"Qty_qp",title:"氢破已派工",type:"decimal",width:110,edit:{type:""},showOverflowTooltip:true,align:"left"},
                       {field:"InputQty_qp",title:"氢破已入库",type:"decimal",width:110,edit:{type:""},showOverflowTooltip:true,align:"left"},
                       {field:"Qty_qlm",title:"气流磨已派工",type:"decimal",width:110,edit:{type:""},showOverflowTooltip:true,align:"left"},
                       {field:"InputQty_qlm",title:"气流磨已入库",type:"decimal",width:110,edit:{type:""},showOverflowTooltip:true,align:"left"},
                       {field:"Qty_yx",title:"压型已派工",type:"decimal",width:110,edit:{type:""},showOverflowTooltip:true,align:"left"},
                       {field:"InputQty_yx",title:"压型已入库",type:"decimal",width:110,edit:{type:""},showOverflowTooltip:true,align:"left"},
                       {field:"Qty_sj",title:"烧结已派工",type:"decimal",width:110,edit:{type:""},showOverflowTooltip:true,align:"left"},
                       {field:"InputQty_sj",title:"烧结已入库",type:"decimal",width:110,edit:{type:""},showOverflowTooltip:true,align:"left"},
                       {field:"update_data",title:"更新时间",type:"datetime",width:120,showOverflowTooltip:true,align:"left"},
                       {field:"Id",title:"键",type:"bigint",width:110,hidden:true,readonly:true,require:true,showOverflowTooltip:true,align:"left"},
                       {field:"IsValid",title:"是否有效(0:否,1:是)",type:"int",width:110,hidden:true,require:true,showOverflowTooltip:true,align:"left"},
                       {field:"Remarks",title:"备注",type:"string",width:110,edit:{type:"textarea"},showOverflowTooltip:true,align:"left"},
                       {field:"CreateId",title:"创建人ID",type:"bigint",width:80,hidden:true,require:true,showOverflowTooltip:true,align:"left"},
                       {field:"Creator",title:"创建人名",type:"string",width:100,showOverflowTooltip:true,align:"left"},
                       {field:"CreateTime",title:"创建时间",type:"datetime",width:110,showOverflowTooltip:true,align:"left"},
                       {field:"ModifyId",title:"修改人ID",type:"bigint",width:80,hidden:true,showOverflowTooltip:true,align:"left"},
                       {field:"Modifier",title:"修改人名",type:"string",width:100,showOverflowTooltip:true,align:"left"},
                       {field:"ModifyTime",title:"修改时间",type:"datetime",width:110,showOverflowTooltip:true,align:"left"}]);
            const detail = ref({columns:[]});
            const details = ref([]);
            return {
                table,
                extend,
                editFormFields,
                editFormOptions,
                searchFormFields,
                searchFormOptions,
                columns,
                detail,
                details
            };
        },
    });
</script>
